Optimal. Leaf size=304 \[ -\frac {2 b^{2/3} \text {ArcTan}\left (\frac {\sqrt [6]{-1} \left (\sqrt [6]{-1} \sqrt [3]{b}+i \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 a^{4/3} \sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}} d}+\frac {2 \sqrt [3]{-1} b^{2/3} \text {ArcTan}\left (\frac {\sqrt [6]{-1} \left ((-1)^{5/6} \sqrt [3]{b}+i \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}}}\right )}{3 a^{4/3} \sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}} d}-\frac {2 b^{2/3} \tanh ^{-1}\left (\frac {\sqrt [3]{b}-\sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}+b^{2/3}}}\right )}{3 a^{4/3} \sqrt {a^{2/3}+b^{2/3}} d}-\frac {\coth (c+d x)}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.44, antiderivative size = 304, normalized size of antiderivative = 1.00, number of steps
used = 15, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3299, 3852, 8,
2739, 632, 210} \begin {gather*} -\frac {2 b^{2/3} \text {ArcTan}\left (\frac {\sqrt [6]{-1} \left (\sqrt [6]{-1} \sqrt [3]{b}+i \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 a^{4/3} d \sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}}}+\frac {2 \sqrt [3]{-1} b^{2/3} \text {ArcTan}\left (\frac {\sqrt [6]{-1} \left ((-1)^{5/6} \sqrt [3]{b}+i \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}}}\right )}{3 a^{4/3} d \sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}}}-\frac {2 b^{2/3} \tanh ^{-1}\left (\frac {\sqrt [3]{b}-\sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}+b^{2/3}}}\right )}{3 a^{4/3} d \sqrt {a^{2/3}+b^{2/3}}}-\frac {\coth (c+d x)}{a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 210
Rule 632
Rule 2739
Rule 3299
Rule 3852
Rubi steps
\begin {align*} \int \frac {\text {csch}^2(c+d x)}{a+b \sinh ^3(c+d x)} \, dx &=-\int \left (-\frac {\text {csch}^2(c+d x)}{a}+\frac {b \sinh (c+d x)}{a \left (a+b \sinh ^3(c+d x)\right )}\right ) \, dx\\ &=\frac {\int \text {csch}^2(c+d x) \, dx}{a}-\frac {b \int \frac {\sinh (c+d x)}{a+b \sinh ^3(c+d x)} \, dx}{a}\\ &=\frac {(i b) \int \left (\frac {\sqrt [3]{-1}}{3 \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [6]{-1} \sqrt [3]{a}-i \sqrt [3]{b} \sinh (c+d x)\right )}-\frac {(-1)^{2/3}}{3 \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [6]{-1} \sqrt [3]{a}+\sqrt [6]{-1} \sqrt [3]{b} \sinh (c+d x)\right )}-\frac {1}{3 \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [6]{-1} \sqrt [3]{a}+(-1)^{5/6} \sqrt [3]{b} \sinh (c+d x)\right )}\right ) \, dx}{a}-\frac {i \text {Subst}(\int 1 \, dx,x,-i \coth (c+d x))}{a d}\\ &=-\frac {\coth (c+d x)}{a d}-\frac {\left (i b^{2/3}\right ) \int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}+(-1)^{5/6} \sqrt [3]{b} \sinh (c+d x)} \, dx}{3 a^{4/3}}+\frac {\left (\sqrt [6]{-1} b^{2/3}\right ) \int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}+\sqrt [6]{-1} \sqrt [3]{b} \sinh (c+d x)} \, dx}{3 a^{4/3}}+\frac {\left ((-1)^{5/6} b^{2/3}\right ) \int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}-i \sqrt [3]{b} \sinh (c+d x)} \, dx}{3 a^{4/3}}\\ &=-\frac {\coth (c+d x)}{a d}-\frac {\left (2 b^{2/3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}+2 \sqrt [3]{-1} \sqrt [3]{b} x+\sqrt [6]{-1} \sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 a^{4/3} d}+\frac {\left (2 \sqrt [3]{-1} b^{2/3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}-2 \sqrt [3]{b} x+\sqrt [6]{-1} \sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 a^{4/3} d}-\frac {\left (2 (-1)^{2/3} b^{2/3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}-2 (-1)^{2/3} \sqrt [3]{b} x+\sqrt [6]{-1} \sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 a^{4/3} d}\\ &=-\frac {\coth (c+d x)}{a d}+\frac {\left (4 b^{2/3}\right ) \text {Subst}\left (\int \frac {1}{-4 \left (\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}\right )-x^2} \, dx,x,2 \sqrt [3]{-1} \sqrt [3]{b}+2 \sqrt [6]{-1} \sqrt [3]{a} \tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 a^{4/3} d}-\frac {\left (4 \sqrt [3]{-1} b^{2/3}\right ) \text {Subst}\left (\int \frac {1}{-4 \left (\sqrt [3]{-1} a^{2/3}-b^{2/3}\right )-x^2} \, dx,x,-2 \sqrt [3]{b}+2 \sqrt [6]{-1} \sqrt [3]{a} \tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 a^{4/3} d}+\frac {\left (4 (-1)^{2/3} b^{2/3}\right ) \text {Subst}\left (\int \frac {1}{-4 \sqrt [3]{-1} \left (a^{2/3}+b^{2/3}\right )-x^2} \, dx,x,-2 (-1)^{2/3} \sqrt [3]{b}+2 \sqrt [6]{-1} \sqrt [3]{a} \tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 a^{4/3} d}\\ &=-\frac {2 \sqrt [3]{-1} b^{2/3} \tan ^{-1}\left (\frac {\sqrt [3]{b}-(-1)^{2/3} \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}}}\right )}{3 a^{4/3} \sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}} d}-\frac {2 b^{2/3} \tan ^{-1}\left (\frac {\sqrt [3]{-1} \sqrt [3]{b}+(-1)^{2/3} \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 a^{4/3} \sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}} d}-\frac {2 b^{2/3} \tanh ^{-1}\left (\frac {\sqrt [3]{b}-\sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}+b^{2/3}}}\right )}{3 a^{4/3} \sqrt {a^{2/3}+b^{2/3}} d}-\frac {\coth (c+d x)}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 0.30, size = 230, normalized size = 0.76 \begin {gather*} -\frac {3 \coth \left (\frac {1}{2} (c+d x)\right )+2 b \text {RootSum}\left [-b+3 b \text {$\#$1}^2+8 a \text {$\#$1}^3-3 b \text {$\#$1}^4+b \text {$\#$1}^6\&,\frac {-c-d x-2 \log \left (-\cosh \left (\frac {1}{2} (c+d x)\right )-\sinh \left (\frac {1}{2} (c+d x)\right )+\cosh \left (\frac {1}{2} (c+d x)\right ) \text {$\#$1}-\sinh \left (\frac {1}{2} (c+d x)\right ) \text {$\#$1}\right )+c \text {$\#$1}^2+d x \text {$\#$1}^2+2 \log \left (-\cosh \left (\frac {1}{2} (c+d x)\right )-\sinh \left (\frac {1}{2} (c+d x)\right )+\cosh \left (\frac {1}{2} (c+d x)\right ) \text {$\#$1}-\sinh \left (\frac {1}{2} (c+d x)\right ) \text {$\#$1}\right ) \text {$\#$1}^2}{b+4 a \text {$\#$1}-2 b \text {$\#$1}^2+b \text {$\#$1}^4}\&\right ]+3 \tanh \left (\frac {1}{2} (c+d x)\right )}{6 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 2.66, size = 118, normalized size = 0.39
method | result | size |
derivativedivides | \(\frac {-\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a}-\frac {1}{2 a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {2 b \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{6}-3 a \,\textit {\_Z}^{4}-8 b \,\textit {\_Z}^{3}+3 a \,\textit {\_Z}^{2}-a \right )}{\sum }\frac {\left (\textit {\_R}^{3}-\textit {\_R} \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{5} a -2 \textit {\_R}^{3} a -4 \textit {\_R}^{2} b +\textit {\_R} a}\right )}{3 a}}{d}\) | \(118\) |
default | \(\frac {-\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a}-\frac {1}{2 a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {2 b \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{6}-3 a \,\textit {\_Z}^{4}-8 b \,\textit {\_Z}^{3}+3 a \,\textit {\_Z}^{2}-a \right )}{\sum }\frac {\left (\textit {\_R}^{3}-\textit {\_R} \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{5} a -2 \textit {\_R}^{3} a -4 \textit {\_R}^{2} b +\textit {\_R} a}\right )}{3 a}}{d}\) | \(118\) |
risch | \(-\frac {2}{d a \left ({\mathrm e}^{2 d x +2 c}-1\right )}+4 \left (\munderset {\textit {\_R} =\RootOf \left (\left (2985984 a^{10} d^{6}+2985984 a^{8} b^{2} d^{6}\right ) \textit {\_Z}^{6}+62208 a^{6} b^{2} d^{4} \textit {\_Z}^{4}-b^{4}\right )}{\sum }\textit {\_R} \ln \left ({\mathrm e}^{d x +c}+\left (-\frac {248832 d^{5} a^{10}}{a^{2} b^{3}-b^{5}}-\frac {248832 d^{5} a^{8} b^{2}}{a^{2} b^{3}-b^{5}}\right ) \textit {\_R}^{5}+\left (\frac {20736 d^{4} a^{9}}{a^{2} b^{3}-b^{5}}+\frac {20736 d^{4} a^{7} b^{2}}{a^{2} b^{3}-b^{5}}\right ) \textit {\_R}^{4}+\left (-\frac {3456 d^{3} a^{6} b^{2}}{a^{2} b^{3}-b^{5}}+\frac {1728 d^{3} b^{4} a^{4}}{a^{2} b^{3}-b^{5}}\right ) \textit {\_R}^{3}+\left (\frac {288 d^{2} a^{5} b^{2}}{a^{2} b^{3}-b^{5}}-\frac {144 d^{2} b^{4} a^{3}}{a^{2} b^{3}-b^{5}}\right ) \textit {\_R}^{2}+\left (-\frac {12 d \,a^{4} b^{2}}{a^{2} b^{3}-b^{5}}+\frac {24 d \,b^{4} a^{2}}{a^{2} b^{3}-b^{5}}\right ) \textit {\_R} -\frac {a \,b^{4}}{a^{2} b^{3}-b^{5}}\right )\right )\) | \(377\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 21133 vs. \(2 (211) = 422\).
time = 1.24, size = 21133, normalized size = 69.52 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 23.06, size = 1293, normalized size = 4.25 \begin {gather*} \left (\sum _{k=1}^6\ln \left (-\frac {8192\,b^4\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )+d\,x}-65536\,a\,b^3-{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^2\,a^3\,b^3\,d^2\,294912-{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^3\,a^4\,b^3\,d^3\,221184-\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )\,a^2\,b^3\,d\,196608+{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^4\,a^8\,d^4\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )+d\,x}\,10616832+{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^5\,a^9\,d^5\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )+d\,x}\,7962624-{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^3\,a^6\,b\,d^3\,1769472+{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^4\,a^7\,b\,d^4\,2654208-{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^5\,a^8\,b\,d^5\,1990656+{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^2\,a^4\,b^2\,d^2\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )+d\,x}\,2064384+{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^3\,a^5\,b^2\,d^3\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )+d\,x}\,5529600+{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^4\,a^6\,b^2\,d^4\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )+d\,x}\,7299072+{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )}^5\,a^7\,b^2\,d^5\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )+d\,x}\,9953280+\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )\,a^3\,b^2\,d\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )+d\,x}\,393216}{a^4\,b^5}\right )\,\mathrm {root}\left (729\,a^8\,b^2\,d^6\,z^6+729\,a^{10}\,d^6\,z^6+243\,a^6\,b^2\,d^4\,z^4-b^4,z,k\right )\right )+\frac {2}{a\,d-a\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________